export const DepartmentRules = {
  name: [
    { required: true, message: '部门名称不能为空', trigger: 'blur' }
  ],
  principal: [
    { required: true, message: '负责人不能为空', trigger: 'blur' }
  ],
  tel: [
    { required: true, message: '电话不能为空', trigger: 'blur' }
  ],
  email: [
    { required: true, message: 'Email不能为空', trigger: 'blur' }
  ]
}

export const basicRules = {
  name: [
    { required: true, message: '学校名称不能为空', trigger: 'blur' }
  ]
}

export const jobRules = {
  name: [
    { required: true, message: '职位名称不能为空', trigger: 'blur' }
  ],
  project_id: [
    { required: true, message: '请选择所属项目', trigger: 'change' }
  ],
  number: [
    { required: true, message: '招聘人数不能为空', trigger: 'blur' }
  ],
  post: [
    { required: true, message: '招聘岗位不能为空', trigger: 'blur' }
  ],
  school: [
    { required: true, message: '请选择院校要求', trigger: 'change' }
  ],
  education: [
    { required: true, message: '请选择学历要求', trigger: 'change' }
  ],
  sex: [
    { required: true, message: '请选择性别要求', trigger: 'change' }
  ]
}

export const projectRules = {
  name: [
    { required: true, message: '项目名称不能为空', trigger: 'blur' }
  ],
  time: [
    { required: true, message: '请选择起始时间', trigger: 'change' }
  ],
  department_id: [
    { required: true, message: '请选择参与部门', trigger: 'change' }
  ],
  post: [
    { required: false, message: '招聘岗位不能为空', trigger: 'blur' }
  ],
  principal: [
    { required: true, message: '请输入负责人', trigger: 'change' }
  ]
}

export const talentRules = {
  name: [
    { required: true, message: '姓名不能为空', trigger: 'blur' }
  ],
  recommend: [
    { required: true, message: '推荐职位不能为空', trigger: 'blur' }
  ],
  first_recommend: [
    { required: false, message: '初次推荐不能为空', trigger: 'blur' }
  ],
  sex: [
    { required: true, message: '请选择性别', trigger: 'change' }
  ],
  birthday: [
    { required: false, message: '请选择出生日期', trigger: 'change' }
  ],
  education: [
    { required: true, message: '请选择学历', trigger: 'change' }
  ],
  university: [
    { required: true, message: '请输入学校', trigger: 'blur' }
  ],
  profession: [
    { required: true, message: '请输入专业', trigger: 'blur' }
  ]
}

export const secondInterviewComment_1 = {
  status: [
    { required: true, message: '请选择面试状态', trigger: 'change' }
  ],
  boss: [
    { required: false, message: '请输入面试官名称', trigger: 'blur' }
  ],
  is_system_in: [
    { required: true, message: '请选择是否为系统内人员', trigger: 'change' }
  ],
  system_in_level: [
    { required: false, message: '请选择系统内岗级', trigger: 'change' }
  ],
  recommend_level: [
    { required: false, message: '请选择建议岗级', trigger: 'change' }
  ],
  ability: [
    { required: true, message: '请选择能力区间', trigger: 'change' }
  ]
}

export const secondInterviewComment_2 = {
  status: [
    { required: true, message: '请选择面试状态', trigger: 'change' }
  ],
  boss: [
    { required: false, message: '请输入面试官名称', trigger: 'blur' }
  ],
  is_system_in: [
    { required: true, message: '请选择是否为系统内人员', trigger: 'change' }
  ],
  system_in_level: [
    { required: true, message: '请选择系统内岗级', trigger: 'change' }
  ],
  recommend_level: [
    { required: true, message: '请选择建议岗级', trigger: 'change' }
  ],
  ability: [
    { required: true, message: '请选择能力区间', trigger: 'change' }
  ]
}
